package com.wmh.baseservice.skd.mapper;

import com.wmh.baseservice.skd.pojo.SkdGoodsInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.math.BigDecimal;
import java.util.List;

/**
* @author CH
* @description 针对表【skd_goods_info(平台商品表)】的数据库操作Mapper
* @createDate 2023-12-24 14:37:07
* @Entity com.wmh.baseservice.skd.pojo.SkdGoodsInfo
*/
public interface SkdGoodsInfoMapper extends BaseMapper<SkdGoodsInfo> {
    @Select("SELECT img_url FROM skd_goods_info WHERE id = #{goodsId}")
    String getGoodsImageUrlById(Long goodsId);
    @Select("SELECT price FROM skd_goods_info WHERE id = #{goodsId}")
    BigDecimal getGoodsPriceById(Long goodsId);
}




